package com.ljb.autolayout_demo;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.ljb.autolayout.AutoLayoutActivity;
import com.ljb.autolayout.AutoSize;

public class MainActivity extends AutoLayoutActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        AutoSize.init(this);

        View view = findViewById(R.id.view);
        LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(AutoSize.autoX(100), AutoSize.autoY(5));
        view.setLayoutParams(params);
    }
}
